package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.security.entity.User;
import com.example.mall.util.ResultVo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;


public interface UserService extends IService<User>, UserDetailsService {

    List<User> userList();

    ResultVo login(String username, String password);

    User selectLoginInfoByUserId(Long userId);

    ResultVo userInfo();

    ResultVo deleteUser(Long userId, Integer id);
}
